<form action="preview" class="layui-form layui-form-pane edit-form" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">
            模块
        </label>
        <div class="layui-input-block">
            <select lay-filter="module" lay-search="" name="module">
                {foreach $modules as $module}
                <option value="{$module}">
                    {$module}
                </option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            表名
        </label>
        <div class="layui-input-block">
            <select lay-search="" lay-verify="required" name="tn">
                <option value="">
                    选择一个表
                </option>
                {foreach $tables as $table}
                <option value="{$table}">
                    {$table}
                </option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-filter="genform" lay-submit="">
                <i class="fa fa-code">
                </i>
                预览
            </button>
        </div>
    </div>
</form>
{load href="__module__/admin/gen/index.js" /}
